
import request from '@/utils/request'

export function login(data: any) {
    return request({
        url: 'login/index',
        method: 'POST',
        params: data
    },false)
}

export function logout() {
    return request({
        url: 'system.admin/logout',
        method: 'GET'
    })
}
export function getLoginCaptcha() {
    return request({
        url: 'login/captcha',
        method: 'GET'
    },false)
}

export function getSystemInfo() {
    return request({
        url: 'publics/systemInfo',
        method: 'GET'
    },false)
}

export function getEnumApi() {
    return request({
        url: 'publics/enum',
        method: 'GET'
    },false)
}